<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/inc.jsp" %>
<page:header title="修改页面">
<script lang="JavaScript">
<%-- 返回操作 --%>
function back(){
	window.location.href = "${base}/baseInfo!baseInfoList.do";
}
<%-- 修改操作 --%>
function updateBaseInfo(){
	 var saveOp = new AjaxFormOp();
	 saveOp.form=document.updateBaseInfoForm;
	 saveOp.opName='保存';
	 saveOp.beforeSubmit=function(a,f,o){
	}
	saveOp.success=function(data){
    	if(data.flag){
    		alert(data.msg);
    		back();
    	}else{
    		alert(data.msg);
    	}
	};
	saveOp.execute();
}
</script>

</page:header>
<%-- 头部 --%>
<div class="location"><span><d:path/></span></div>
<form action="${base}/baseInfo!baseInfoUpdate.do" name="updateBaseInfoForm" id="updateBaseInfoForm" method="post" >
   	<input type="hidden" id="id" name="baseInfo.id" value="${baseInfo.id}" >
    <table cellspacing="0" cellpadding="0" border="0" width="98.2%" class="detailList">
	<tr>
	  <th width="15%" align="right">姓名</th>
	  <td colspan="3">
		 <input type="text" name="baseInfo.name" id="name" value="${baseInfo.name}"  class="defaultText"  notNull="true"/>
	  </td>
	</tr>
	<tr>
	  <th width="15%" align="right">详情</th>
	  <td colspan="3">
		<textarea name="baseInfo.details" id="details">${baseInfo.details}</textarea>
	  </td>
	</tr>
	<tr>
	  <th width="15%" align="right">性别</th>
	  <td colspan="3">
		 <input type="text" name="baseInfo.sex" id="sex" value="${baseInfo.sex}"  class="defaultText" />
	  </td>
	</tr>
	</table>
</form>
<br/>	
 <div align="center">
    <input type="button" icon="save" value="保存" onclick="updateBaseInfo();"/>
    <input type="button" icon="cancel" value="返回" onclick="back()"/>
 </div>
<%-- 底部 --%>
<d:sysHelper/>
<script lang="JavaScript">
	autoStyle(null,{select:false,radio:false});
</script>
<page:footer></page:footer>

